package xyz.bali16.module.link.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加友情链接参数")
public class LinkAddParam {

    @ApiModelProperty(name = "text", value = "友情链接名字", required = true)
    @NotNull(message = "友情链接名字不能为空")
    private String name;

    @ApiModelProperty(name = "url", value = "url链接", required = false)
    @NotEmpty(message = "url链接不能为空")
    private String url;

    @ApiModelProperty(name = "logo", value = "友情链接logo", required = false)
    @NotEmpty(message = "logo链接不能为空")
    private String logo;

}
